//base
import Taro, { Component } from '@tarojs/taro'
import { View, Text, Image } from '@tarojs/components'
//less
import './index.less'
import JobSingle from '../../../../components/page-components/job-single'

class JobWrap extends Component {
  componentWillMount() {
    //onLoad
  }

  componentDidMount() {
    //onready
  }

  componentDidShow() {
    //onshow
  }

  componentDidHide() {
    //onhide
  }

  componentWillUnmount() {
    //onUnload
  }

  delay(time = 0) {
    return new Promise(resolve => {
      setTimeout(() => {
        resolve()
      }, time)
    })
  }

  render() {
    return (
      <View className={`JobWrap_id11499 ${this.props.animate ? 'animatepart_id83748' : ''}`}>
        <View className="numberrick">
          <View className="numberw">在职岗位{this.props.number}个</View>
          <Image
            className="imagew"
            src="https://imagesize.hrwork.com/sp/files/75e4dce8-e27d-4fe1-845f-e08f9cc764a9.png"
          />
        </View>
        <JobSingle dataSource={this.props.dataSource} />
      </View>
    )
  }
}

export default JobWrap
